class Phone:
    producer = "huawei"

    def call_by_5g(self):
        print("父类的5g通话")


class Phone2023(Phone):
    producer = "xiaomi"

    def call_by_5g(self):
        # # 方法一
        # print(f"父类的品牌是：{Phone.producer}")
        # Phone.call_by_5g(self)
        # # 方法二
        # print(f"父类的品牌是：{super().producer}")
        # super().call_by_5g()

        print("子类的5g通话")


# phone = Phone2023
# print(phone.producer)
# phone.call_by_5g(super)

phone = Phone2023()
print(phone.producer)
phone.call_by_5g()
